Ruby 4.0.1 + publishable platform gems for Ruby 4.0#154
Merged
Conversation
Use .ruby-version as the single source of truth for typecheck and release jobs, and add a CI job that runs the suite on the pinned patch version.
Install the compiled extension into lib/code_ownership/<major.minor>/ so cross-gem can package multiple Ruby minors into a single platform gem without overwriting.
Exclude tmp/ and target/ from static analysis to avoid scanning vendored/compiled build outputs.
Only ignore lib/code_ownership/<major.minor>/ so new Ruby source files under lib/code_ownership/* aren't accidentally hidden.
This gem ships native binaries through Ruby 4.0, so restrict installs to < 4.1.dev until we add 4.1 builds and CI coverage.
martinemde
approved these changes
Jan 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.ruby-version.lib/code_ownership/<major.minor>/so platform gem builds can package multiple Ruby minors (3.2-4.0) without overwriting.Why
Previously published platform gems carried an unintended
required_ruby_version < 3.5.dev, blocking Ruby 4 installs. Versioned native extension paths enable building a single platform gem that contains per-Ruby-minor binaries, so the published artifact can safely support Ruby >= 3.2 (including 4.0).Test plan
bundle exec rakebundle exec rubocopbundle exec srb tc